package com.uphone.kingmall.activity.personal.set;

import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.china.zhuoyue.R;
import com.uphone.kingmall.base.BaseActivity;
import com.uphone.kingmall.utils.GlideUtils;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * <pre>
 *     author : 王雨
 *     e-mail : sunzengyan@outlook.com
 *     time   : 2018/07/31
 *     desc   :关于王者商城
 *     version: 1.0
 * </pre>
 */
public class AboutAppActivity extends BaseActivity {
    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.iv_icon)
    ImageView ivIcon;
    @BindView(R.id.rl_agreement)
    RelativeLayout rlAgreement;
    @BindView(R.id.rl_copyright)
    RelativeLayout rlCopyright;

    @Override
    public int getLayoutContentId() {
        return R.layout.kingmall_activity_about_app;
    }

    @Override
    public void initView() {
        setStatusBar();
        GlideUtils.getInstance().loadCircleImage(this, R.mipmap.icon, ivIcon);
    }

    @Override
    public void initData() {
    }


    @OnClick({R.id.iv_back, R.id.rl_agreement, R.id.rl_copyright})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_back:
                finish();
                break;
            case R.id.rl_agreement:
                openActivity(AgreementActivity.class);
                break;
            case R.id.rl_copyright:
                openActivity(AgreementActivity1.class);
                break;
        }
    }
}
